package chapter3;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.*;

public class ch3Group extends Composite {
	public ch3Group(Composite parent) {
		super(parent, SWT.NONE);
		
		Group group = new Group(this, SWT.SHADOW_ETCHED_IN);
		group.setText("Group label");
		
		Label label = new Label(group, SWT.NONE);
		label.setText("two buttons");
		label.setLocation(20, 20);
		label.pack();
		
		Button button1 = new Button(group, SWT.PUSH);
		button1.setText("push button");
		button1.setLocation(20, 45);
		button1.pack();
		
		Button button2 = new Button(group, SWT.CHECK);
		button2.setText("check button");
		button2.setBounds(20, 75, 90, 30);
		//button2.pack();
		
		group.pack();
		
		
	}
}
